package com.mall.concurrency.example.singleton;

/**
 * @Author:zwy
 * @Despriction:
 * @Date:Create in 15:00 2018/5/29
 * @Modify By:
 */
public class SingletonExamle1 {
    private SingletonExamle1(){

    }
    private static SingletonExamle1 instance = null;

    public static SingletonExamle1 getInstance(){
        if(instance == null){
            instance = new SingletonExamle1();
        }
        return instance;
    }
}
